import service from '@/utils/request'

// 列表
export const ueryProgressListApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/queryProgressList', dataForm)
}

export const updateBasicApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/updateBasic', dataForm)
}
export const basicInfoApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/basicInfo', dataForm)
}

//编制管理-编制列表-查看-编制进度
export const progressInfoApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/progressInfo', dataForm)
}

// 编制管理-编制列表-编辑-导出报批资料
export const exportApprovalListApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/exportApprovalList', dataForm)
}

//编制管理-编制列表-编辑-暂存编制过程
export const updateProgressApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/updateProgress', dataForm)
}
//编制管理-编制列表-编辑-编辑进度阶段和状态
export const updateStageAndStatusApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/updateStageAndStatus', dataForm)
}

//编制管理-编制列表-编辑-退回
export const doReturnApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/doReturn', dataForm)
}

//编制管理-编制列表-编辑-征求意见函填写
export const updateSolicitationApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/updateSolicitation', dataForm)
}
//编制管理-编制列表-编辑-征求意见函查看
export const solicitationInfoApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/solicitationInfo', dataForm)
}
//编制管理-编制列表(审核部门)-分配账号/更换账号
export const assignAccountApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/assignAccount', dataForm)
}

//编制管理-编制列表(审核部门)-备案
export const doRecordApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/doRecord', dataForm)
}

//编制管理-编制列表(审核部门)-上传电子版
export const submitElectronicEditionApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/submitElectronicEdition', dataForm)
}

//编制管理-编制列表(审核部门)-撤销
export const cancelProgressAndApplyApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/cancelProgressAndApply', dataForm)
}
//编制管理-编制列表(审核部门)-时间设置
export const timeSettingApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/timeSetting', dataForm)
}

//编制管理-编制列表(审核部门)-更改时间设置
export const updateTimeSettingApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/updateTimeSetting', dataForm)
}
//编制管理-编制列表(审核部门)-归档
export const documentationApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/documentation', dataForm)
}

//编制管理-编制列表(审核部门)-取消发布
export const cancelPublishProgressApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/cancelPublishProgress', dataForm)
}

//编制管理-编制列表(审核部门)-导出
export const exportProgressApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/exportProgress', dataForm)
}

//根据业务所处阶段获取附件编码
export const queryFilesSettingApi = (dataForm: any) => {
	return service.post('/api/files/queryFilesSetting', dataForm)
}

//上传附件
export const uploadApi = (dataForm: any) => {
	return service.post('/api/files/upload', dataForm)
}

//随时改变状态

export const changeStageAndStatusApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/changeStageAndStatus', dataForm)
}

export const doPublishApi = (dataForm: any) => {
	return service.post('/api/preparationProgress/doPublish', dataForm)
}
